package com.uzai.console.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.uzai.console.dto.ciku.CikuKeywordsQuery;
import com.uzai.console.dto.pyq.pyqfollowedContent.PyqFollowedContentQuery;
import com.uzai.console.entity.CikuKeywords;
import com.uzai.console.entity.PyqFollowedContent;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface PyqFollowedContentMapper {
    int deleteById(Long id);

    int deleteBeforeDay(@Param("beforeDay") Integer beforeDay);

    int insert(PyqFollowedContent record);

    int insertSelective(PyqFollowedContent record);

    PyqFollowedContent selectById(Long id);

    PyqFollowedContent selectByDeviceUniqueIdAndSnsId(@Param("deviceUniqueId") Long deviceUniqueId, @Param("snsId") String snsId);

    int updateByIdSelective(PyqFollowedContent record);

    int updateById(PyqFollowedContent record);

    int updateItemInfoBySnsId(PyqFollowedContent record);

    /**
     * 分页查询
     * @param page
     * @param query
     * @return
     */
    ArrayList<PyqFollowedContent> findByList(Page<PyqFollowedContent> page, @Param("query") PyqFollowedContentQuery query);

    /**
     * 查询所有
     * @param query
     * @return
     */
    ArrayList<PyqFollowedContent> findByList(@Param("query") PyqFollowedContentQuery query);
}